happy accident

Translations
удачное стечение обстоятельств
Discovering penicillin was a happy accident.
Открытие пенициллина было удачным стечением обстоятельств.
Definitions
An unexpected event or outcome that turns out to be beneficial or positive, often leading to a fortunate result that was not planned or intended.